<?php
/**
 * Base class for admincp controlelr
 *
 * @package     nuo
 * @subpackage  nuo.controller
 * @author      Nam Nguyen <nam.ngvan@gmail.com>
 * @version     1.0
 * @since       Apr 19, 2013
 */
class Nuo_Controller_Admincp extends Nuo_Controller
{
	function init()
	{
		parent::init();

		if (!Nuo::allow('core.admincp'))
		{
			/**
			 * visit to permission denied page.
			 */
			$uri = Nuo::getUrl('core/error403');
			Nuo::redirect($uri);
		}

		Nuo::getDocument() -> setTheme('admincp')-> setTitle('Admin Control Panel');;
	}

}
